import {Component, Output, EventEmitter} from "@angular/core";

@Component({
  selector: 'person-input',
  templateUrl: 'person-input.html'
})
export class PersonInput {
  @Output() addPerson = new EventEmitter()

  add(personInput) {
    this.addPerson.emit(personInput.value)
    personInput.value = ''
  }
}
